import { createPinia } from 'pinia'
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'

const pinia = createPinia()
pinia.use(piniaPluginPersistedstate)

export default pinia

export { default as useStore } from './modules'
export { default as useUserStore } from './modules/user'
export { default as useMenuStore } from './modules/menu'
export { default as useTabStore } from './modules/tab'
export { default as useButtonStore } from './modules/button'
export { default as useConfigStore } from './modules/config'
export { default as useDialogStore } from './modules/dialog'
